
/**
 @file ctc_usw_se_oam_cli.c

 @date 2019-4-12

 @version v6.0

 The file apply clis of se oam module
*/


/****************************************************************
 *
 * Header Files
 *
 ***************************************************************/
#include "ctc_sc_oam_cli.h"
#include "ctc_cli.h"
#include "ctc_cli_common.h"
#include "ctc_error.h"
#include "ctc_api.h"
#include "ctcs_api.h"
#include "ctc_debug.h"

extern int32
sys_usw_sc_oam_show_status(uint8 lchip);
CTC_CLI(ctc_cli_sc_oam_show_status,
        ctc_cli_sc_oam_show_status_cmd,
        "show sc-oam status",
        CTC_CLI_SHOW_STR,
        CTC_CLI_SC_OAM_M_STR,
        "Status"
        )
{
    int32 ret = CLI_SUCCESS;

    ret = sys_usw_sc_oam_show_status(g_api_lchip);

    if (ret < 0)
    {
        ctc_cli_out("%% %s \n", ctc_get_error_desc(ret));
        return CLI_ERROR;
    }

    return CLI_SUCCESS;
}

int32
ctc_usw_sc_oam_cli_init(void)
{
    install_element(CTC_SDK_MODE, &ctc_cli_sc_oam_show_status_cmd);
    return CLI_SUCCESS;
}

int32
ctc_usw_sc_oam_cli_deinit(void)
{
    uninstall_element(CTC_SDK_MODE, &ctc_cli_sc_oam_show_status_cmd);
    return CLI_SUCCESS;
}

